package com.yc.mvc.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloAction {
    //相当于WebServlet
    @RequestMapping("hello.do")
    public String hello(){
        return "Hello World";
    }
}
